$(function(){
	var id=queryString('detailId');
	requJudeMes(id);

//正则取链接传来的数据
function queryString(key)
{
    var regex_str = "^.+\\?.*?\\b"+ key +"=(.*?)(?:(?=&)|$|#)";
    var regex = new RegExp(regex_str,"i");
    var url = window.location.toString();
    if(regex.test(url)) return RegExp.$1;
    return undefined;
}
//根据id获取当前会议记录信息
function requJudeMes(id){
	var url="getRecordByInfoId.do"
	var infoId={infoId:id}
	var object;
	YuXi.util.get(url,infoId,function(data){
		if(data.status){
			object=data.object;
			var time=YuXi.getTime.get(object.time);
			$(".creatTime").html(time);
			$("#time").val(time);
			$(".place").html(object.address);
			$("#address").val(object.address);
			$(".haviUser").val(object.conferenceStaff);
			$(".content").val(object.conferenceContent);
		
		}

	
	},function(){});
	
}
//研判模态框
function judgeModal(){
	$("#judgeModal").modal('show');
}
//保存研判的信息
function savaJudgeBtn(){
	$("#judgeModal").modal('hide');
	var judgeMes={};
	judgeMes.split=$(".split").html();
	judgeMes.sort=$(".sort").html();
	judgeMes.classifi=$(".classifi").html();
	judgeMes.source=$(".source").html();
	judgeMes.profile=$(".profile").val();
	judgeMes.content=$(".content").val();
	judgeMes.starad=$(".starad").val();
	judgeMes.measure=$(".measure").val();
	alert(JSON.stringify(judgeMes));
	
}
});

function exportWord(){
	document.getElementById("export").click();
}